package cn.winwintech.screenlocker

import android.app.admin.DeviceAdminReceiver
import android.content.Context
import android.content.Intent


class AdminReceiver : DeviceAdminReceiver() {
    override fun onEnabled(context: Context, intent: Intent) {
        super.onEnabled(context, intent)
    }

    override fun onDisableRequested(context: Context, intent: Intent): CharSequence? {
        return "禁用设备管理员权限将没法完成锁屏功能，确定禁用吗？"
    }

    override fun onDisabled(context: Context, intent: Intent) {
        super.onDisabled(context, intent)
    }
}